package com.wenshi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("hydrogen_production_rates")
public class HydrogenProductionRates {
    @TableId(value = "hydrogen_id", type = IdType.AUTO)
    public Long hydrogenId;

    public Long deviceId;

    public Double productionRate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date timestamp;

    @TableField(exist = false)
    public String deviceIp;
}
